package code.c03;

/**
 * @author thinkpad - 83start
 * @version v1.0
 * @create 2022/9/15 12:21
 * @package code.c03
 * @description 文件说明
 */

public class Student {

    String name;
    int age;

    public Student() {


    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void speak(){
        System.out.println("我是" + this.name);
    }

    public void study(){
        System.out.println(this.name + "正在学习");
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }



}
